package com.mystery.mapper;

import com.mystery.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface OrderMapper {

    List<Order> query(@Param("userId") Long userId,@Param("fitnessName") String fitnessName);
    List<Order> queryAll(@Param("userId") Long userId);
    List<Order> find(@Param("userId") Long userId);

    void paid(@Param("id") Long id);

    void update(@Param("id") long id,@Param("evaluate") String evaluate);

    void add(@Param("userId") long userId,@Param("username") String username,
             @Param("fitnessId") long fitnessId,@Param("fitnessName") String fitnessName,@Param("orderNumber") long orderNumber);
}
